#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
class QAbstractButton;
class QProcess;

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

    static bool connectToDb();

private slots:
    void on_toolBtnGrp_buttonClicked(QAbstractButton *b);
    void on_studyView_selectedRows(const QList<int> rows);
    void on_startStudy(const QString &studyUid);
    void on_viewStudy(const QString &studyUid);

private:
    void setupConnection();
    void showMessage(const QString &msg);

    Ui::MainWindow *ui;
    QProcess *view;
    QProcess *acq;
};

#endif // MAINWINDOW_H
